package com.hailiao.beidou.message.ui.page.search.view

import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
import com.d10ng.compose.ui.AppText
import com.hailiao.beidou.message.R

/**
 * 搜索无结果
 * @Author d10ng
 * @Date 2023/11/29 10:31
 */
@Composable
fun ColumnScope.SearchEmpty() {
    Column(
        modifier = Modifier
            .fillMaxSize()
            .weight(1f),
        verticalArrangement = Arrangement.Center,
        horizontalAlignment = Alignment.CenterHorizontally
    ) {
        Image(
            painter = painterResource(id = R.drawable.search_empty),
            contentDescription = null,
            modifier = Modifier.size(124.dp),
            contentScale = ContentScale.Fit
        )
        Text(
            text = "无任何相关信息",
            style = AppText.Normal.Tips.default,
            modifier = Modifier.padding(top = 19.dp)
        )
    }
}